/*
 * I2C.h
 *
 *  Created on: May 7, 2014
 *      Author: Steve
 */
#include "..\MicrocontrollerAPI\RL78\microapi.h"

#ifndef I2C_H_
#define I2C_H_

void I2C_WriteBit(unsigned char c);

U8 I2C_ReadBit();
// Inits bitbanging port, must be called before using the functions below
//
void I2C_Init();
// Send a START Condition
//
void I2C_Start();
// Send a STOP Condition
//
void I2C_Stop();

// write a byte to the I2C slave device
//
U8 I2C_WriteByte(U8 c);

// read a byte from the I2C slave device
//
unsigned char I2C_ReadByte(unsigned char ack);



#endif /* I2C_H_ */
